Skip to content

ci: run the existing test suites on push and PR - #4

Merged
Santhosh595 merged 1 commit into
mainfrom
feat/ci-workflow
Oct 21, 2026
Merged

Santhosh595 merged 1 commit into
mainfrom
feat/ci-workflow

Conversation

@Santhosh595

@Santhosh595 Santhosh595 commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

The repo has two real pytest suites — FileGuard-AES-SHA256/test_main.py (15 tests) and network-sniffer/test_sniffer.py (11 tests) — and no CI, so nothing verified them on the way in.

The workflow

Both suites on every push to main and every PR targeting it, on Python 3.10, 3.11 and 3.12. Actions are pinned by full SHA.

The suites need no network and no display: tkinter is imported by FileGuard's main.py, but the tested code paths never open a window.

Only the two suites that are real pytest modules are run. The files under APIGuard/tests/ (api1_bola.py, api7_ssrf.py, ...) are OWASP API Security Top 10 test definitions, not pytest modules, and are not collected.

Also

  • A CI badge, and a note in the README that both suites run in CI.

Measured

FileGuard-AES-SHA256/test_main.py   15 passed
network-sniffer/test_sniffer.py     11 passed

Verified on Python 3.10, 3.11 and 3.12. The test files themselves are unchanged.

The repo has two real pytest suites -- FileGuard-AES-SHA256/test_main.py
(15 tests) and network-sniffer/test_sniffer.py (11 tests) -- and no CI,
so nothing verified them on the way in.

Add .github/workflows/ci.yml: both suites on every push to main and every
PR targeting it, on Python 3.10, 3.11 and 3.12. Actions are pinned by
full SHA. The suites need no network and no display: tkinter is
imported by FileGuard's main.py, but the tested code paths never open a
window.

Only the two suites that are real pytest modules are run. The files
under APIGuard/tests/ (api1_bola.py, api7_ssrf.py, ...) are OWASP API
Security Top 10 test definitions, not pytest modules, and are not
collected.

Also add a CI badge and note in the README that both suites run in CI.

Suite: 15 + 11 = 26 tests, unchanged. Verified on 3.10, 3.11 and 3.12.
@Santhosh595
Santhosh595 merged commit 93094c9 into main Oct 21, 2026
3 checks passed
@Santhosh595
Santhosh595 deleted the feat/ci-workflow branch October 21, 2026 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant